﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;
using System.ServiceModel.Description;
namespace ch02.service
{
    /// <summary>
    /// AddressFilterMode.Any可以忽略报头匹配
    /// </summary>
    [ServiceBehavior(AddressFilterMode = AddressFilterMode.Any)]
    class CalculatorService : contract.ICalculator
    {
        public double Add(double x, double y)
        {
            return x + y;
        }
    }
}
